package xq.gwt.mvc.model;

import java.io.Serializable;

import xq.gwt.mvc.model.PersistableEntityModel;

public class Relation implements Serializable{
		
	private static final long serialVersionUID = -6801721709855017643L;
	private PersistableEntityModel toEntity;
	private String toPropertyName;
	
	public Relation(){
		
	}
	
	public Relation(PersistableEntityModel toEntity, String toPropertyName){
		this.toEntity = toEntity;
		this.toPropertyName = toPropertyName;
	}
	
	public PersistableEntityModel getToEntity() {
		return toEntity;
	}
	public void setToEntity(PersistableEntityModel toEntity) {
		this.toEntity = toEntity;
	}
	public String getToPropertyName() {
		return toPropertyName;
	}
	public void setToPropertyName(String toPropertyName) {
		this.toPropertyName = toPropertyName;
	}
	
	
	
}
